<template>
  <div class="layout">
    <el-container>
      <el-aside width="auto">
        <CommonAside />
      </el-aside>
      <el-container>
        <el-header>
          <common-header />
        </el-header>
        <el-main>
          <CommonTab />
          <router-view></router-view>
        </el-main>
        <el-footer>Footer</el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import CommonAside from '@/components/CommonAside.vue';
import CommonHeader from '@/components/CommonHeader.vue';
import CommonTab from '../components/CommonTab.vue';

</script>

<style lang="less" scoped>
.layout {
  height: 100%;

  .el-container {
    height: 100%;
  }
  .el-header,
  .el-footer {
    background-color: #333;
  }

  .el-main {
    padding: 0;
  }

  .el-aside {
    overflow: hidden;
  }
}
</style>